package com.apimarket.dao;

import com.apimarket.entity.SysMenu;
import com.apimarket.entity.vo.Node;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface SysMenuMapper {
    List<Map<String,Object>> findObjects();

    //删除menu信息
    //1.确定有无对应子菜单
    //2.关系数据库信息
    //3.在删除menu信息
    int deleteObject(Integer id);

    int getChildCount(Integer id);

    List<Node> findZtreeMenuNodes();

    int insertObject(SysMenu entity);

    int updateObject(SysMenu entity);

}
